package com.jinghong.registerlogin.service;

import com.jinghong.registerlogin.model.pojo.Question;

import java.time.LocalDateTime;
import java.util.List;

/**
 * ClassName:QuestionService
 * Package:com.jinghong.registerlogin.service
 * Description:
 *
 * @Author: 寻月君子
 * @CreatTime:2024/5/18 21:44
 * Version:1.0
 */
public interface QuestionService {
    //增
    /*新增题目*/
    void insert(Question question);


    void bulkInsert(List<Question> questions);

    //删
    /*删除题目*/
    void delete(List<Integer> ids);


    //改
    /*更改题目信息*/
    void update(Question question);


    //查
    /*题目的条件查询*/
    List<Question> select(Integer userId, String content, Short type, Integer scorce, LocalDateTime begain, LocalDateTime end);


    /*编辑题目时数据回显*/
    Question getById(Integer id);


    Question getByContentAndType(String content,Short type);

    List<Question> bulkGet(List<Integer> ids);

    void bulkUpdate(List<Question> questions);
}
